import { encryptByAES } from '@/utils/aes'
import request from '@/utils/request'

export function login(username, password) {
  return request({
    url: '/sysUser/login',
    method: 'post',
    data: {
      'data': encryptByAES(JSON.stringify({
        loginName: username,
        password: password
      }))
    }
  })
}
